/**
 * Created by Administrator on 2018/10/3 0003.
 */

var pc = new PageConf();
pc.el = "#app";
pc.data = {
    user:{
        username:"",
        password:"",
    },
    labelPosition:"left",
};
pc.OnLoad = function () {
    console.log("onload")
};
pc.func = {
    login:function () {
        // console.log($(this))
        // console.log(this)
        console.log(JSON.stringify(this.user))
        console.log(this.user.username)
        console.log(this.user.password)
        // console.log($("#app").html());
        // alert(_this.text)
        apiPost("/login",this.user,function (res) {
            console.log(res)
        })
    }
}
new Page(pc);